package ink.xiaobaibai.bo;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @description: 业务员: 订单绑定对象
 * @author: 小白白
 * @create: 2021-05-31
 **/

@Data
public class BindOneMonthlyOrder {

    /**
     * 物流对象
     */
    // 物流必定有(因为客户填写)
    //    private Integer logisticsId;
    private String imageUrl;
    private BigDecimal sendCost;
    /**
     * 物流订单号
     */
    private String number;

    /**
     * 对应的订单id
     */
    @NotBlank
    private String orderId;

    /**
     * 绑定的臭氧机器id
     */
    @NotNull
    private Integer deviceId;

    /**
     * 试用时间
     */
    @Min(value = 0, message = "天数错误")
    @Max(value = 7, message = "天数过长")
    private Integer trialDay;

    /**
     * 延长时间
     */
    @Min(value = 0, message = "天数错误")
    @Max(value = 7, message = "天数过长")
    private Integer extendedDay;


}
